package de.koller.zero.engine.commands;

import de.koller.zero.arch.CTTZNode;
import de.koller.zero.arch.ICommand;
import de.koller.zero.arch.ZNode;

public class RemoveNode implements ICommand {

	private final ZNode toRemove;

	public RemoveNode( ZNode toRemove ) {
		this.toRemove = toRemove;
	}
	
	@Override
	public void handleCommand( CTTZNode node ) {
		toRemove.removeThis();
	}

	
	
}
